package cn.iocoder.yudao.module.product.controller.app.comment.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED;

@Schema(description = "用户 App - 商品评价Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AppCommentCreateReqVO extends PageParam {

    @Schema(description = "试题 SPU 编号",requiredMode = REQUIRED,  example = "29502")
    @NotNull(message = "试题编号不能为空")
    private Long spuId;

    @Schema(description = "试题评论", requiredMode = REQUIRED, example = "不错！")
    @NotNull(message = "内容不能为空")
    private String content;
}
